package com.itheima.service;

import com.itheima.pojo.Member;

import java.util.List;
import java.util.Map;

/**
 * @Description:
 * @Author: yp
 */
public interface MemberService {

    /**
     * 根据手机号码查询会员
     * @param telephone
     * @return
     */
    Member findByTelephone(String telephone);

    /**
     * 注册
     * @param member
     */
    void register(Member member);

    /**
     * 统计每个月分的会员的总数(累加)
     * @param monthList
     * @return
     */
    List<Integer> findMemberCountByMonths(List<String> monthList);

    List<Map<String,Object>> findByAge() throws Exception;

    List<Map<String,Object>> findBySex();
}
